﻿<Window 
  x:Class="TimersXP.TimersHost"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"    
  xmlns:scm="clr-namespace:System.ComponentModel;assembly=WindowsBase"
  xmlns:local="clr-namespace:TimersXP"
  Name="TimersHostView"
  SizeToContent="Height"
  Title="TimersXP"
  WindowStartupLocation="CenterScreen"
  WindowStyle="ToolWindow">
    <Window.Resources>
        <ObjectDataProvider x:Key="TimersHostViewModel" ObjectType="{x:Type local:TimersHostViewModel}"/>
    </Window.Resources>
  <Grid DataContext="{StaticResource TimersHostViewModel}" Style="{DynamicResource styleBackground}">
    <!--ContentControl Content="{Binding Source={StaticResource TimersHostViewModel}}"/-->
      
    <Grid.RowDefinitions>
        <RowDefinition Height="21"/>
        <RowDefinition Height="*" />
    </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="*"/>
        <ColumnDefinition Width="90"/>
    </Grid.ColumnDefinitions>

    <!--Main Menu-->
    <Menu IsMainMenu="True" Style="{DynamicResource styleBanner}" Margin="0,0,0,1">
        <MenuItem Header="_Help" Style="{DynamicResource styleBanner}">
            <MenuItem Header="_About" Style="{DynamicResource styleBanner}"/>
        </MenuItem>
    </Menu>
        
    <!--Top Most Check Box-->
    <CheckBox Content="Top Most" Grid.Column="1" Height="16" HorizontalAlignment="Left" Margin="11,2,0,0" Name="checkBox1" VerticalAlignment="Top" />

    <!--Stopwatch & Countdown Tab Defintions-->
    <TabControl Grid.Row="1" Grid.ColumnSpan="2" Style="{DynamicResource styleContentArea}">
        <TabItem Header="Stopwatch"/>
        <TabItem Header="Countdown"/>
    </TabControl>
        
    <!-- CONTEXT MENU -->
    <Grid.ContextMenu>
      <ContextMenu ItemsSource="{Binding Skins}" Style="{DynamicResource styleBanner}" MenuItem.Click="OnMenuItemClick">
        <MenuItem Tag=".\Resources\Skins\BlackSkin.xaml" IsChecked="True">
            <MenuItem.Header>
            <Rectangle Width="120" Height="40" Fill="Black" />
            </MenuItem.Header>
        </MenuItem>
        <MenuItem Tag=".\Resources\Skins\GreenSkin.xaml">
            <MenuItem.Header>
            <Rectangle Width="120" Height="40" Fill="Green" />
            </MenuItem.Header>
        </MenuItem>
        <MenuItem Tag=".\Resources\Skins\BlueSkin.xaml">
            <MenuItem.Header>
            <Rectangle Width="120" Height="40" Fill="Blue" />
            </MenuItem.Header>
        </MenuItem>
      </ContextMenu>
    </Grid.ContextMenu>
  </Grid>
</Window>